home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMRect.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  126 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMRect.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMRect_h__
  6. #define __gen_nsIDOMRect_h__
  7.  
  8.  
  9. #ifndef __gen_domstubs_h__
  10. #include "domstubs.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDOMRect */
  19. #define NS_IDOMRECT_IID_STR "71735f62-ac5c-4236-9a1f-5ffb280d531c"
  20.  
  21. #define NS_IDOMRECT_IID \
  22.   {0x71735f62, 0xac5c, 0x4236, \
  23.     { 0x9a, 0x1f, 0x5f, 0xfb, 0x28, 0x0d, 0x53, 0x1c }}
  24.  
  25. class NS_NO_VTABLE nsIDOMRect : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMRECT_IID)
  29.  
  30.   /* readonly attribute nsIDOMCSSPrimitiveValue top; */
  31.   NS_IMETHOD GetTop(nsIDOMCSSPrimitiveValue * *aTop) = 0;
  32.  
  33.   /* readonly attribute nsIDOMCSSPrimitiveValue right; */
  34.   NS_IMETHOD GetRight(nsIDOMCSSPrimitiveValue * *aRight) = 0;
  35.  
  36.   /* readonly attribute nsIDOMCSSPrimitiveValue bottom; */
  37.   NS_IMETHOD GetBottom(nsIDOMCSSPrimitiveValue * *aBottom) = 0;
  38.  
  39.   /* readonly attribute nsIDOMCSSPrimitiveValue left; */
  40.   NS_IMETHOD GetLeft(nsIDOMCSSPrimitiveValue * *aLeft) = 0;
  41.  
  42. };
  43.  
  44. /* Use this macro when declaring classes that implement this interface. */
  45. #define NS_DECL_NSIDOMRECT \
  46.   NS_IMETHOD GetTop(nsIDOMCSSPrimitiveValue * *aTop); \
  47.   NS_IMETHOD GetRight(nsIDOMCSSPrimitiveValue * *aRight); \
  48.   NS_IMETHOD GetBottom(nsIDOMCSSPrimitiveValue * *aBottom); \
  49.   NS_IMETHOD GetLeft(nsIDOMCSSPrimitiveValue * *aLeft); 
  50.  
  51. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  52. #define NS_FORWARD_NSIDOMRECT(_to) \
  53.   NS_IMETHOD GetTop(nsIDOMCSSPrimitiveValue * *aTop) { return _to GetTop(aTop); } \
  54.   NS_IMETHOD GetRight(nsIDOMCSSPrimitiveValue * *aRight) { return _to GetRight(aRight); } \
  55.   NS_IMETHOD GetBottom(nsIDOMCSSPrimitiveValue * *aBottom) { return _to GetBottom(aBottom); } \
  56.   NS_IMETHOD GetLeft(nsIDOMCSSPrimitiveValue * *aLeft) { return _to GetLeft(aLeft); } 
  57.  
  58. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  59. #define NS_FORWARD_SAFE_NSIDOMRECT(_to) \
  60.   NS_IMETHOD GetTop(nsIDOMCSSPrimitiveValue * *aTop) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTop(aTop); } \
  61.   NS_IMETHOD GetRight(nsIDOMCSSPrimitiveValue * *aRight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRight(aRight); } \
  62.   NS_IMETHOD GetBottom(nsIDOMCSSPrimitiveValue * *aBottom) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBottom(aBottom); } \
  63.   NS_IMETHOD GetLeft(nsIDOMCSSPrimitiveValue * *aLeft) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLeft(aLeft); } 
  64.  
  65. #if 0
  66. /* Use the code below as a template for the implementation class for this interface. */
  67.  
  68. /* Header file */
  69. class nsDOMRect : public nsIDOMRect
  70. {
  71. public:
  72.   NS_DECL_ISUPPORTS
  73.   NS_DECL_NSIDOMRECT
  74.  
  75.   nsDOMRect();
  76.  
  77. private:
  78.   ~nsDOMRect();
  79.  
  80. protected:
  81.   /* additional members */
  82. };
  83.  
  84. /* Implementation file */
  85. NS_IMPL_ISUPPORTS1(nsDOMRect, nsIDOMRect)
  86.  
  87. nsDOMRect::nsDOMRect()
  88. {
  89.   /* member initializers and constructor code */
  90. }
  91.  
  92. nsDOMRect::~nsDOMRect()
  93. {
  94.   /* destructor code */
  95. }
  96.  
  97. /* readonly attribute nsIDOMCSSPrimitiveValue top; */
  98. NS_IMETHODIMP nsDOMRect::GetTop(nsIDOMCSSPrimitiveValue * *aTop)
  99. {
  100.     return NS_ERROR_NOT_IMPLEMENTED;
  101. }
  102.  
  103. /* readonly attribute nsIDOMCSSPrimitiveValue right; */
  104. NS_IMETHODIMP nsDOMRect::GetRight(nsIDOMCSSPrimitiveValue * *aRight)
  105. {
  106.     return NS_ERROR_NOT_IMPLEMENTED;
  107. }
  108.  
  109. /* readonly attribute nsIDOMCSSPrimitiveValue bottom; */
  110. NS_IMETHODIMP nsDOMRect::GetBottom(nsIDOMCSSPrimitiveValue * *aBottom)
  111. {
  112.     return NS_ERROR_NOT_IMPLEMENTED;
  113. }
  114.  
  115. /* readonly attribute nsIDOMCSSPrimitiveValue left; */
  116. NS_IMETHODIMP nsDOMRect::GetLeft(nsIDOMCSSPrimitiveValue * *aLeft)
  117. {
  118.     return NS_ERROR_NOT_IMPLEMENTED;
  119. }
  120.  
  121. /* End of implementation class template. */
  122. #endif
  123.  
  124.  
  125. #endif /* __gen_nsIDOMRect_h__ */
  126.